package com.corticon.dialogs.dao;

import com.corticon.dialogs.model.Questionnaire;
import com.corticon.dialogs.model.UserGroup;
import com.corticon.dialogs.util.Pager;
import java.util.List;

public interface QuestionnaireDAO extends GenericDAO<Questionnaire, Long> {

    public int GetMaxNumber();

    public long getCountByGroup(UserGroup group);

    public List<Questionnaire> getPageOfDataByGroup(UserGroup group, Pager pager);

    String findMaxRefId();

    long findMaxVersionByRefId(String refId);

    List<Questionnaire> search(String keywords, String function, String region,
        String productType, String locale, String status, String username, String groupName,
        Pager pager);
}